using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;

namespace Baocao
{
    public partial class rptTHNXTMR1 : DevExpress.XtraReports.UI.XtraReport
    {
        public rptTHNXTMR1()
        {
            InitializeComponent();
            blindData();
        }

        public void blindData()
        {
            Ma_hang.DataBindings.Add("Text", this.DataSource, "Ma_vt");
            Ten_hang.DataBindings.Add("Text", this.DataSource, "Ten_vt");
            dvt.DataBindings.Add("Text", this.DataSource, "Dvt");
            sl_tondau.DataBindings.Add("Text", this.DataSource, "Ton_dau", "{0:n0}");
            gt_tondau.DataBindings.Add("Text", this.DataSource, "Du_dau", "{0:n0}");
            sl_nhapmua.DataBindings.Add("Text", this.DataSource, "sl_nhap_mua", "{0:n0}");
            gt_nhapmua.DataBindings.Add("Text", this.DataSource, "Tien_nhap_mua", "{0:n0}");
            sl_nhapkhac.DataBindings.Add("Text", this.DataSource, "sl_nhap_khac", "{0:n0}");
            gt_nhapkhac.DataBindings.Add("Text", this.DataSource, "Tien_nhap_khac", "{0:n0}");
            sl_xuatban.DataBindings.Add("Text", this.DataSource, "sl_xuat_ban", "{0:n0}");
            gt_xuatban.DataBindings.Add("Text", this.DataSource, "Tien_xuat_ban", "{0:n0}");
            sl_xuatkhac.DataBindings.Add("Text", this.DataSource, "sl_xuat_khac", "{0:n0}");
            gt_xuatkhac.DataBindings.Add("Text", this.DataSource, "Tien_xuat_khac", "{0:n0}");
            sl_toncuoi.DataBindings.Add("Text", this.DataSource, "Ton_cuoi", "{0:n0}");
            gt_toncuoi.DataBindings.Add("Text", this.DataSource, "Du_cuoi", "{0:n0}");

            Sum_sl_td.DataBindings.Add("Text", this.DataSource, "Ton_dau", "{0:n0}");
            Sum_gt_td.DataBindings.Add("Text", this.DataSource, "Du_dau", "{0:n0}");
            Sum_sl_nm.DataBindings.Add("Text", this.DataSource, "sl_nhap_mua", "{0:n0}");
            Sum_gt_nm.DataBindings.Add("Text", this.DataSource, "Tien_nhap_mua", "{0:n0}");
            Sum_sl_nk.DataBindings.Add("Text", this.DataSource, "sl_nhap_khac", "{0:n0}");
            Sum_gt_nk.DataBindings.Add("Text", this.DataSource, "Tien_nhap_khac", "{0:n0}");
            Sum_sl_xb.DataBindings.Add("Text", this.DataSource, "sl_xuat_ban", "{0:n0}");
            Sum_gt_xb.DataBindings.Add("Text", this.DataSource, "Tien_xuat_ban", "{0:n0}");
            Sum_sl_xk.DataBindings.Add("Text", this.DataSource, "sl_xuat_khac", "{0:n0}");
            Sum_gt_xk.DataBindings.Add("Text", this.DataSource, "Tien_xuat_khac", "{0:n0}");
            Sum_sl_tc.DataBindings.Add("Text", this.DataSource, "Ton_cuoi", "{0:n0}");
            Sum_gt_tc.DataBindings.Add("Text", this.DataSource, "Du_cuoi", "{0:n0}");            
        }

    }
}
